import request from '@/utils/request'
var qs = require('qs')
export function getUserList(params) {
  return request({
    url: 'sysUser/list',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function userDetail(params) {
  return request({
    url: 'sysUser/input',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function addUser(params) {
  return request({
    url: '/sysUser/save',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function deleteUser(params) {
  return request({
    url: 'sysUser/delete',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function getAllDepartment() {
  return request({
    url: 'sysOrg/getOrgByParKey',
    method: 'post',
    data: qs.stringify({
      parKey: '-1'
    })
  })
}
